package com.gitee.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "t_cookbook_food")
public class CookbookFood {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer cookbookId;

    private Integer foodId;

    private Integer stock;

    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;
}
